package com.cy.mapper;

import com.cy.entity.UserCountByLastname;
import com.cy.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.entity.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
public interface UsersMapper extends BaseMapper<Users> {
     List<Users> findusersAll();
     Users findusersById(String UserID);
     Integer addUsers(Users user);
     Integer updateUsers(Users user);
     Integer deleteUsers(Integer UserId);
     Integer countUsers();
     List<UserCountByLastname> countUsersByLastname(String surname);

    Users findUser(String info);

    Integer insertUser(Users users);

    Integer updatePassword(Users users);


}
